package com.meals.system.api.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/14
 */
@Data
public class WhitesMealOrderDetailVO implements Serializable {
    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("商家id")
    private Long sellerId;

    @ApiModelProperty("订单价格")
    private Integer totalPrice;

    // Order entity里面的payStatus直接对应
    @ApiModelProperty("订单支付状态码")
    private Byte payStatus;

    // Order entity里面的payType直接对应 或 PayTypeEnum里面的payType直接对应
    @ApiModelProperty("订单支付方式")
    private Byte payType;

    // PayTypeEnum里面的name
    @ApiModelProperty("订单支付方式")
    private String payTypeString;

    @ApiModelProperty("订单支付时间")
    private Date payTime;

    @ApiModelProperty("订单状态码")
    private Byte orderStatus;

    @ApiModelProperty("订单状态")
    private String orderStatusString;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("订单项列表")
    private List<WhitesMealOrderItemVO> whitesMealOrderItemVOS;

}
